import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询设施监测设备监测项全部
export const alarmFacilityDeviceItemList = data => {
    return $get('/alarm/alarmFacilityDeviceItem/list', data)
}

// 查询设施监测设备监测项列表
export const alarmFacilityDeviceItemPage = data => {
    return $get('/alarm/alarmFacilityDeviceItem/page', data)
}

// 新增设施监测设备监测项
export const alarmFacilityDeviceItemAdd = data => {
    return $post('/alarm/alarmFacilityDeviceItem/add', data)
}

// 查询设施监测设备监测项详情
export const alarmFacilityDeviceItemDetail = id => {
    return $get('/alarm/alarmFacilityDeviceItem/detail/'+ id)
}

// 更新设施监测设备监测项
export const alarmFacilityDeviceItemUpdate = data => {
    return $post('/alarm/alarmFacilityDeviceItem/update', data)
}

// 删除设施监测设备监测项
export const alarmFacilityDeviceItemDelete = id => {
    return $post('/alarm/alarmFacilityDeviceItem/delete/'+ id)
}

// 导出设施监测设备监测项
export const alarmFacilityDeviceItemExport = (data,fileName) => {
    return $download('/alarm/alarmFacilityDeviceItem/export',data, fileName)
}

//设施类型查询
export const alarmFacilityTypeList = () => {
  return $get('/alarm/alarmFacilityType/list')
}

//设备类型查询
export const alarmFacilityDeviceList = (data) => {
  return $get('/alarm/alarmFacilityDeviceType/list',data)
}
